package com.wootion.cims.module.communityresidence.occupancy.service;

import com.wootion.cims.module.communityresidence.occupancy.dto.OccupancyDto;
import com.wootion.cims.module.communityresidence.occupancy.dto.PageQueryOcc;
import com.wootion.cims.module.communityresidence.occupancy.excel.ExcelRules;
import com.wootion.cims.response.ResponseResult;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @Author: LanQiang
 * @Date: 2022/12/19/9:55
 * @Description: 作用xxx
 */
public interface OccupancyService {
    /**
     * 列表查询
     * @param pageQueryOcc
     * @return
     */
    ResponseResult list(PageQueryOcc pageQueryOcc);

    /**
     * 根据房屋id,查询当前业主以及关联的所有入住人员(包括业主自身)信息
     * @param id
     * @return
     */
    ResponseResult find(String id);

    /**
     * 修改入住情况
     * @return
     */
    ResponseResult updateSave(OccupancyDto occupancyDto, HttpServletRequest request);

    /**
     * 导出住宅列表
     * @param excelRules
     * @return
     */
    ResponseResult occupancyExcel(ExcelRules excelRules);

    /**
     * excel导出
     * @param filePath
     * @param response
     * @return
     */
    ResponseResult download(String filePath,HttpServletResponse response);
}
